<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS的层叠性</title>
    <!-- <style>
        p{
            color: red;
        }
        .par{
            font-size: 20px;
        }
        /* 文字添加下划线 */
        #par{
            text-decoration: underline;
        }
    </style> -->
    <style>
        #par{
            color: purple;
        }
        .par{
            color: blue;
        }
        p{
            color: red;
        }
    </style>
</head>
<body>
    <p class="par" id="par">
        文字
    </p>
</body>
</html>